EMG-triggered electrical stimulation